the end of file was reached prematurely